package com.app.controller;

import org.tio.http.common.HttpRequest;
import org.tio.http.common.HttpResponse;
import org.tio.http.server.annotation.RequestPath;
import org.tio.http.server.util.Resps;

@RequestPath(value = "/index")
public class IndexController 
{
	public IndexController(){}
	
	@RequestPath(value = "/index")
	public HttpResponse index(HttpRequest request) throws Exception
	{
		HttpResponse ret = Resps.html(request, "IndexController->index");
		return ret;
	}
	
	@RequestPath(value = "/demo")
	public HttpResponse demo(HttpRequest request) throws Exception
	{
		HttpResponse ret = Resps.html(request, "IndexController->demo");
		return ret;
	}
}